            //Healing Spells
            {
                if (item?.typeId == "magicraft:heal_spell" && chargeTime <= 19960 && player.getTotalXp() <= 55) {
                    player.addEffect("regeneration", 100, { showParticles: false, amplifier: 0 })
                    player.startItemCooldown("magicraft:heal_spells", 200);
                    player.addEffect("darkness", 200, { showParticles: false, amplifier: 0 })
                }
                else if (item?.typeId == "magicraft:heal_spell" && chargeTime <= 19960 && player.getTotalXp() >= 55 && player.getTotalXp() <= 160) {
                    player.addEffect("regeneration", 100, { showParticles: false, amplifier: 1 })
                    player.startItemCooldown("magicraft:heal_spells", 200);
                }
                else if (item?.typeId == "magicraft:heal_spell" && chargeTime <= 19960 && player.getTotalXp() >= 160 && player.getTotalXp() <= 315) {
                    player.addEffect("regeneration", 100, { showParticles: false, amplifier: 1 })
                    player.startItemCooldown("magicraft:heal_spells", 200);
                }
                else if (item?.typeId == "magicraft:heal_spell" && chargeTime <= 19960 && player.getTotalXp() >= 315 && player.getTotalXp() <= 550) {
                    player.addEffect("regeneration", 100, { showParticles: false, amplifier: 2 })
                    player.startItemCooldown("magicraft:heal_spells", 200);
                }
                else if (item?.typeId == "magicraft:heal_spell" && chargeTime <= 19960 && player.getTotalXp() >= 550 && player.getTotalXp() <= 910) {
                    player.addEffect("regeneration", 100, { showParticles: false, amplifier: 3 })
                    player.startItemCooldown("magicraft:heal_spells", 200);
                    player.addEffect("slowness", 60, { showParticles: false, amplifier: 0 })
                }
                else if (item?.typeId == "magicraft:heal_spell" && chargeTime <= 19960 && player.getTotalXp() >= 910 && player.getTotalXp() <= 2045) {
                    player.addEffect("regeneration", 200, { showParticles: false, amplifier: 3 })
                    player.startItemCooldown("magicraft:heal_spells", 400);
                    player.addEffect("slowness", 60, { showParticles: false, amplifier: 0 })
                }
                else if (item?.typeId == "magicraft:heal_spell" && chargeTime <= 19960 && player.getTotalXp() >= 2045) {
                    player.addEffect("regeneration", 200, { showParticles: false, amplifier: 3 })
                    player.startItemCooldown("magicraft:heal_spells", 400);
                }
            }


            //Resistance Spells
            {
                if (item?.typeId == "magicraft:resistance_spell" && chargeTime <= 19960 && player.getTotalXp() <= 55) {
                    player.addEffect("resistance", 1200, { showParticles: false, amplifier: 0 })
                    player.startItemCooldown("magicraft:resistance_spells", 1800);
                    player.addEffect("darkness", 200, { showParticles: false, amplifier: 0 })
                }
                else if (item?.typeId == "magicraft:resistance_spell" && chargeTime <= 19960 && player.getTotalXp() >= 55 && player.getTotalXp() <= 160) {
                    player.addEffect("resistance", 1200, { showParticles: false, amplifier: 1 })
                    player.startItemCooldown("magicraft:resistance_spells", 1800);
                }
                else if (item?.typeId == "magicraft:resistance_spell" && chargeTime <= 19960 && player.getTotalXp() >= 160 && player.getTotalXp() <= 315) {
                    player.addEffect("resistance", 3600, { showParticles: false, amplifier: 1 })
                    player.startItemCooldown("magicraft:resistance_spells", 5400);
                }
                else if (item?.typeId == "magicraft:resistance_spell" && chargeTime <= 19960 && player.getTotalXp() >= 315 && player.getTotalXp() <= 550) {
                    player.addEffect("resistance", 3600, { showParticles: false, amplifier: 2 })
                    player.startItemCooldown("magicraft:resistance_spells", 5400);
                }
                else if (item?.typeId == "magicraft:resistance_spell" && chargeTime <= 19960 && player.getTotalXp() >= 550 && player.getTotalXp() <= 910) {
                    player.addEffect("resistance", 6000, { showParticles: false, amplifier: 3 })
                    player.startItemCooldown("magicraft:resistance_spells", 9000);
                    player.addEffect("slowness", 60, { showParticles: false, amplifier: 0 })
                }
                else if (item?.typeId == "magicraft:resistance_spell" && chargeTime <= 19960 && player.getTotalXp() >= 910 && player.getTotalXp() <= 2045) {
                    player.addEffect("resistance", 7500, { showParticles: false, amplifier: 3 })
                    player.startItemCooldown("magicraft:resistance_spells", 11250);
                    player.addEffect("slowness", 60, { showParticles: false, amplifier: 0 })
                }
                else if (item?.typeId == "magicraft:resistance_spell" && chargeTime <= 19960 && player.getTotalXp() >= 2045) {
                    player.addEffect("resistance", 7500, { showParticles: false, amplifier: 3 })
                    player.startItemCooldown("magicraft:resistance_spells", 11250);
                }
            }


            //Fire Resistance Spells
            {
                if (item?.typeId == "magicraft:fire_protection" && chargeTime <= 19960 && player.getTotalXp() <= 55) {
                    player.addEffect("fire_resistance", 1200, { showParticles: false, amplifier: 0 })
                    player.startItemCooldown("magicraft:resistance_spells", 1800);
                    player.addEffect("darkness", 200, { showParticles: false, amplifier: 0 })
                }
                else if (item?.typeId == "magicraft:fire_protection" && chargeTime <= 19960 && player.getTotalXp() >= 55 && player.getTotalXp() <= 160) {
                    player.addEffect("fire_resistance", 1200, { showParticles: false, amplifier: 1 })
                    player.startItemCooldown("magicraft:resistance_spells", 1800);
                }
                else if (item?.typeId == "magicraft:fire_protection" && chargeTime <= 19960 && player.getTotalXp() >= 160 && player.getTotalXp() <= 315) {
                    player.addEffect("fire_resistance", 3600, { showParticles: false, amplifier: 1 })
                    player.startItemCooldown("magicraft:resistance_spells", 5400);
                }
                else if (item?.typeId == "magicraft:fire_protection" && chargeTime <= 19960 && player.getTotalXp() >= 315 && player.getTotalXp() <= 550) {
                    player.addEffect("fire_resistance", 3600, { showParticles: false, amplifier: 2 })
                    player.startItemCooldown("magicraft:resistance_spells", 5400);
                }
                else if (item?.typeId == "magicraft:fire_protection" && chargeTime <= 19960 && player.getTotalXp() >= 550 && player.getTotalXp() <= 910) {
                    player.addEffect("fire_resistance", 6000, { showParticles: false, amplifier: 3 })
                    player.startItemCooldown("magicraft:resistance_spells", 9000);
                    player.addEffect("slowness", 60, { showParticles: false, amplifier: 0 })
                }
                else if (item?.typeId == "magicraft:fire_protection" && chargeTime <= 19960 && player.getTotalXp() >= 910 && player.getTotalXp() <= 2045) {
                    player.addEffect("fire_resistance", 7500, { showParticles: false, amplifier: 3 })
                    player.startItemCooldown("magicraft:resistance_spells", 11250);
                    player.addEffect("slowness", 60, { showParticles: false, amplifier: 0 })
                }
                else if (item?.typeId == "magicraft:fire_protection" && chargeTime <= 19960 && player.getTotalXp() >= 2045) {
                    player.addEffect("fire_resistance", 7500, { showParticles: false, amplifier: 3 })
                    player.startItemCooldown("magicraft:resistance_spells", 11250);
                }
            }


            //Fang Evocation Spells
            {
                //Level 0-5
                if (item?.typeId == "magicraft:fang_summoning" && chargeTime <= 19960 && player.getTotalXp() <= 55) {
                    player.runCommand("execute at @e[family=monster,r=5] run summon evocation_fang ~ ~ ~")
                    player.addEffect("darkness", 200, { showParticles: false, amplifier: 0 })
                }
                //Level 5
                else if (item?.typeId == "magicraft:fang_summoning" && chargeTime <= 19960 && player.getTotalXp() >= 55 && player.getTotalXp() <= 160) {
                    player.runCommand("execute at @e[family=monster,r=10] run summon evocation_fang ~ ~ ~")
                }
                //Level 10
                else if (item?.typeId == "magicraft:fang_summoning" && chargeTime <= 19960 && player.getTotalXp() >= 160 && player.getTotalXp() <= 315) {
                    player.runCommand("execute at @e[family=monster,r=15] run summon evocation_fang ~ ~ ~")
                }
                //Level 15
                else if (item?.typeId == "magicraft:fang_summoning" && chargeTime <= 19960 && player.getTotalXp() >= 315 && player.getTotalXp() <= 550) {
                    player.runCommand("execute at @e[family=monster,r=20] run summon evocation_fang ~ ~ ~")
                    player.addEffect("hunger", 40, { showParticles: false, amplifier: 100 })
                }
                //Level 20
                else if (item?.typeId == "magicraft:fang_summoning" && chargeTime <= 19960 && player.getTotalXp() >= 550 && player.getTotalXp() <= 910) {
                    player.runCommand("execute at @e[family=monster,r=25] run summon evocation_fang ~ ~ ~")
                    player.addEffect("slowness", 60, { showParticles: false, amplifier: 0 })
                }
                //Level 25
                else if (item?.typeId == "magicraft:fang_summoning" && chargeTime <= 19960 && player.getTotalXp() >= 910 && player.getTotalXp() <= 2045) {
                    player.runCommand("execute at @e[family=monster,r=30] run summon evocation_fang ~ ~ ~")
                    player.addEffect("slowness", 60, { showParticles: false, amplifier: 0 })
                }
                //Level 35
                else if (item?.typeId == "magicraft:fang_summoning" && chargeTime <= 19960 && player.getTotalXp() >= 2045) {
                    player.runCommand("execute at @e[family=monster,r=35] run summon evocation_fang ~ ~ ~")
                }
            }


            //Induce Wither Spells
            {
                //Level 0-5
                if (item?.typeId == "magicraft:induce_wither" && chargeTime <= 19960 && player.getTotalXp() <= 55) {
                    player.runCommand("effect @e[family=monster,r=5] wither 10 0 true")
                    player.startItemCooldown("magicraft:attack_spells", 200);
                    player.addEffect("darkness", 200, { showParticles: false, amplifier: 0 })
                }
                //Level 5
                else if (item?.typeId == "magicraft:induce_wither" && chargeTime <= 19960 && player.getTotalXp() >= 55 && player.getTotalXp() <= 160) {
                    player.runCommand("effect @e[family=monster,r=10] wither 10 1 true")
                    player.startItemCooldown("magicraft:attack_spells", 200);
                }
                //Level 10
                else if (item?.typeId == "magicraft:induce_wither" && chargeTime <= 19960 && player.getTotalXp() >= 160 && player.getTotalXp() <= 315) {
                    player.runCommand("effect @e[family=monster,r=15] wither 10 1 true")
                    player.startItemCooldown("magicraft:attack_spells", 200);
                }
                //Level 15
                else if (item?.typeId == "magicraft:induce_wither" && chargeTime <= 19960 && player.getTotalXp() >= 315 && player.getTotalXp() <= 550) {
                    player.runCommand("effect @e[family=monster,r=20] wither 10 1 true")
                    player.startItemCooldown("magicraft:attack_spells", 200);
                }
                //Level 20
                else if (item?.typeId == "magicraft:induce_wither" && chargeTime <= 19960 && player.getTotalXp() >= 550 && player.getTotalXp() <= 910) {
                    player.runCommand("effect @e[family=monster,r=25] wither 10 1 true")
                    player.startItemCooldown("magicraft:attack_spells", 200);
                    player.addEffect("slowness", 60, { showParticles: false, amplifier: 0 })
                }
                //Level 25
                else if (item?.typeId == "magicraft:induce_wither" && chargeTime <= 19960 && player.getTotalXp() >= 910 && player.getTotalXp() <= 2045) {
                    player.runCommand("effect @e[family=monster,r=30] wither 10 2 true")
                    player.startItemCooldown("magicraft:attack_spells", 200);
                    player.addEffect("slowness", 60, { showParticles: false, amplifier: 0 })
                }
                //Level 35
                else if (item?.typeId == "magicraft:induce_wither" && chargeTime <= 19960 && player.getTotalXp() >= 2045) {
                    player.runCommand("effect @e[family=monster,r=35] wither 10 3  true")
                    player.startItemCooldown("magicraft:attack_spells", 200);
                }
            }


            //Night Sight Spells
            {
                if (item?.typeId == "magicraft:night_vision_spell" && chargeTime <= 19960 && player.getTotalXp() <= 55) {
                    player.addEffect("night_vision", 1200, { showParticles: false })
                    player.startItemCooldown("magicraft:support_spells", 1800);
                    player.addEffect("darkness", 200, { showParticles: false, amplifier: 0 })
                }
                else if (item?.typeId == "magicraft:night_vision_spell" && chargeTime <= 19960 && player.getTotalXp() >= 55 && player.getTotalXp() <= 160) {
                    player.addEffect("night_vision", 2400, { showParticles: false })
                    player.startItemCooldown("magicraft:support_spells", 1800);
                }
                else if (item?.typeId == "magicraft:night_vision_spell" && chargeTime <= 19960 && player.getTotalXp() >= 160 && player.getTotalXp() <= 315) {
                    player.addEffect("night_vision", 3600, { showParticles: false })
                    player.startItemCooldown("magicraft:support_spells", 5400);
                }
                else if (item?.typeId == "magicraft:night_vision_spell" && chargeTime <= 19960 && player.getTotalXp() >= 315 && player.getTotalXp() <= 550) {
                    player.addEffect("night_vision", 4800, { showParticles: false })
                    player.startItemCooldown("magicraft:support_spells", 5400);
                }
                else if (item?.typeId == "magicraft:night_vision_spell" && chargeTime <= 19960 && player.getTotalXp() >= 550 && player.getTotalXp() <= 910) {
                    player.addEffect("night_vision", 6000, { showParticles: false })
                    player.startItemCooldown("magicraft:support_spells", 9000);
                    player.addEffect("slowness", 60, { showParticles: false, amplifier: 0 })
                }
                else if (item?.typeId == "magicraft:night_vision_spell" && chargeTime <= 19960 && player.getTotalXp() >= 910 && player.getTotalXp() <= 2045) {
                    player.addEffect("night_vision", 7200, { showParticles: false })
                    player.startItemCooldown("magicraft:support_spells", 11250);
                    player.addEffect("slowness", 60, { showParticles: false, amplifier: 0 })
                }
                else if (item?.typeId == "magicraft:night_vision_spell" && chargeTime <= 19960 && player.getTotalXp() >= 2045) {
                    player.addEffect("night_vision", 8400, { showParticles: false })
                    player.startItemCooldown("magicraft:support_spells", 11250);
                }
            }


            //Reanimation Spells
            {
                //Level 0-5
                if (item?.typeId == "magicraft:reanimation_spell" && chargeTime <= 19960 && player.getTotalXp() <= 55) {
                    player.runCommand("function reanimate")
                    player.startItemCooldown("magicraft:attack_spells", 1200);
                    player.addEffect("darkness", 200, { showParticles: false, amplifier: 0 })
                }
                //Level 5
                else if (item?.typeId == "magicraft:reanimation_spell" && chargeTime <= 19960 && player.getTotalXp() >= 55 && player.getTotalXp() <= 160) {
                    player.runCommand("function reanimate")
                    player.startItemCooldown("magicraft:attack_spells", 1200);
                }
                //Level 10
                else if (item?.typeId == "magicraft:reanimation_spell" && chargeTime <= 19960 && player.getTotalXp() >= 160 && player.getTotalXp() <= 315) {
                    player.runCommand("function reanimate")
                    player.startItemCooldown("magicraft:attack_spells", 1200);
                }
                //Level 15
                else if (item?.typeId == "magicraft:reanimation_spell" && chargeTime <= 19960 && player.getTotalXp() >= 315 && player.getTotalXp() <= 550) {
                    player.runCommand("function reanimate2")
                    player.startItemCooldown("magicraft:attack_spells", 1200);
                }
                //Level 20
                else if (item?.typeId == "magicraft:reanimation_spell" && chargeTime <= 19960 && player.getTotalXp() >= 550 && player.getTotalXp() <= 910) {
                    player.runCommand("function reanimate2")
                    player.startItemCooldown("magicraft:attack_spells", 1200)
                    player.addEffect("slowness", 60, { showParticles: false, amplifier: 0 })
                }
                //Level 25
                else if (item?.typeId == "magicraft:reanimation_spell" && chargeTime <= 19960 && player.getTotalXp() >= 910 && player.getTotalXp() <= 2045) {
                    player.runCommand("function reanimate2")
                    player.startItemCooldown("magicraft:attack_spells", 1200);
                    player.addEffect("slowness", 60, { showParticles: false, amplifier: 0 })
                }
                //Level 35
                else if (item?.typeId == "magicraft:reanimation_spell" && chargeTime <= 19960 && player.getTotalXp() >= 2045) {
                    player.runCommand("function reanimate2")
                    player.startItemCooldown("magicraft:attack_spells", 1200);
                }
            }


            //Summon Thunder Spells
            {
                //Level 0-5
                if (item?.typeId == "magicraft:thunder_spell" && chargeTime <= 19960 && player.getTotalXp() <= 55) {
                    player.runCommand("execute at @e[family=monster,r=5] run summon lightning_bolt ~ ~ ~")
                    player.addEffect("darkness", 200, { showParticles: false, amplifier: 0 })
                }
                //Level 5
                else if (item?.typeId == "magicraft:thunder_spell" && chargeTime <= 19960 && player.getTotalXp() >= 55 && player.getTotalXp() <= 160) {
                    player.runCommand("execute at @e[family=monster,r=10] run summon lightning_bolt ~ ~ ~")
                }
                //Level 10
                else if (item?.typeId == "magicraft:thunder_spell" && chargeTime <= 19960 && player.getTotalXp() >= 160 && player.getTotalXp() <= 315) {
                    player.runCommand("execute at @e[family=monster,r=15] run summon lightning_bolt ~ ~ ~")
                }
                //Level 15
                else if (item?.typeId == "magicraft:thunder_spell" && chargeTime <= 19960 && player.getTotalXp() >= 315 && player.getTotalXp() <= 550) {
                    player.runCommand("execute at @e[family=monster,r=20] run summon lightning_bolt ~ ~ ~")
                }
                //Level 20
                else if (item?.typeId == "magicraft:thunder_spell" && chargeTime <= 19960 && player.getTotalXp() >= 550 && player.getTotalXp() <= 910) {
                    player.runCommand("execute at @e[family=monster,r=25] run summon lightning_bolt ~ ~ ~")
                    player.addEffect("slowness", 60, { showParticles: false, amplifier: 0 })
                }
                //Level 25
                else if (item?.typeId == "magicraft:thunder_spell" && chargeTime <= 19960 && player.getTotalXp() >= 910 && player.getTotalXp() <= 2045) {
                    player.runCommand("execute at @e[family=monster,r=30] run summon lightning_bolt ~ ~ ~")
                    player.addEffect("slowness", 60, { showParticles: false, amplifier: 0 })
                }
                //Level 35
                else if (item?.typeId == "magicraft:thunder_spell" && chargeTime <= 19960 && player.getTotalXp() >= 2045) {
                    player.runCommand("execute at @e[family=monster,r=35] run summon lightning_bolt ~ ~ ~")
                }
            }


            //Summon Familiar spells
            {
                //Level 0-5
                if (item?.typeId == "magicraft:summon_familiar" && chargeTime <= 19960 && player.getTotalXp() <= 55) {
                    player.startItemCooldown("magicraft:support_spells", 4800);
                    player.runCommand("summon magicraft:familiar ~ ~ ~ facing @p")
                    player.addEffect("darkness", 200, { showParticles: false, amplifier: 0 })
                }
                //Level 5
                else if (item?.typeId == "magicraft:summon_familiar" && chargeTime <= 19960 && player.getTotalXp() >= 55 && player.getTotalXp() <= 160) {
                    player.startItemCooldown("magicraft:support_spells", 4800);
                    player.runCommand("summon magicraft:familiar ~ ~ ~ facing @p")
                }
                //Level 10
                else if (item?.typeId == "magicraft:summon_familiar" && chargeTime <= 19960 && player.getTotalXp() >= 160 && player.getTotalXp() <= 315) {
                    player.startItemCooldown("magicraft:support_spells", 4800);
                    player.runCommand("summon magicraft:familiar ~ ~ ~ facing @p")
                }
                //Level 15
                else if (item?.typeId == "magicraft:summon_familiar" && chargeTime <= 19960 && player.getTotalXp() >= 315 && player.getTotalXp() <= 550) {
                    player.startItemCooldown("magicraft:support_spells", 4800);
                    player.runCommand("summon magicraft:familiar ~ ~ ~ facing @p")
                }
                //Level 20
                else if (item?.typeId == "magicraft:summon_familiar" && chargeTime <= 19960 && player.getTotalXp() >= 550 && player.getTotalXp() <= 910) {
                    player.startItemCooldown("magicraft:support_spells", 4800);
                    player.runCommand("summon magicraft:familiar ~ ~ ~ facing @p")
                    player.addEffect("slowness", 60, { showParticles: false, amplifier: 0 })
                }
                //Level 25
                else if (item?.typeId == "magicraft:summon_familiar" && chargeTime <= 19960 && player.getTotalXp() >= 910 && player.getTotalXp() <= 2045) {
                    player.startItemCooldown("magicraft:support_spells", 4800);
                    player.runCommand("summon magicraft:familiar ~ ~ ~ facing @p")
                    player.addEffect("slowness", 60, { showParticles: false, amplifier: 0 })
                }
                //Level 35
                else if (item?.typeId == "magicraft:summon_familiar" && chargeTime <= 19960 && player.getTotalXp() >= 2045) {
                    player.startItemCooldown("magicraft:support_spells", 4800);
                    player.runCommand("summon magicraft:familiar ~ ~ ~ facing @p")
                }
            }

            //Jumping Spells
            {
                if (item?.typeId == "magicraft:spell_jump" && chargeTime <= 19960 && player.getTotalXp() <= 55) {
                    player.addEffect("jump_boost", 100, { showParticles: false, amplifier: 0 })
                    player.startItemCooldown("magicraft:support_spells", 200);
                    player.addEffect("darkness", 200, { showParticles: false, amplifier: 0 })
                }
                else if (item?.typeId == "magicraft:spell_jump" && chargeTime <= 19960 && player.getTotalXp() >= 55 && player.getTotalXp() <= 160) {
                    player.addEffect("jump_boost", 100, { showParticles: false, amplifier: 1 })
                    player.startItemCooldown("magicraft:support_spells", 200);
                }
                else if (item?.typeId == "magicraft:spell_jump" && chargeTime <= 19960 && player.getTotalXp() >= 160 && player.getTotalXp() <= 315) {
                    player.addEffect("jump_boost", 100, { showParticles: false, amplifier: 1 })
                    player.startItemCooldown("magicraft:support_spells", 200);
                }
                else if (item?.typeId == "magicraft:spell_jump" && chargeTime <= 19960 && player.getTotalXp() >= 315 && player.getTotalXp() <= 550) {
                    player.addEffect("jump_boost", 100, { showParticles: false, amplifier: 2 })
                    player.startItemCooldown("magicraft:support_spells", 200);
                }
                else if (item?.typeId == "magicraft:spell_jump" && chargeTime <= 19960 && player.getTotalXp() >= 550 && player.getTotalXp() <= 910) {
                    player.addEffect("jump_boost", 100, { showParticles: false, amplifier: 3 })
                    player.startItemCooldown("magicraft:support_spells", 200);
                    player.addEffect("slowness", 60, { showParticles: false, amplifier: 0 })
                }
                else if (item?.typeId == "magicraft:spell_jump" && chargeTime <= 19960 && player.getTotalXp() >= 910 && player.getTotalXp() <= 2045) {
                    player.addEffect("jump_boost", 200, { showParticles: false, amplifier: 3 })
                    player.startItemCooldown("magicraft:support_spells", 400);
                    player.addEffect("slowness", 60, { showParticles: false, amplifier: 0 })
                }
                else if (item?.typeId == "magicraft:spell_jump" && chargeTime <= 19960 && player.getTotalXp() >= 2045) {
                    player.addEffect("jump_boost", 200, { showParticles: false, amplifier: 3 })
                    player.startItemCooldown("magicraft:support_spells", 400);
                }
            }

            //Induce Weakness Spells
            {
                //Level 0-5
                if (item?.typeId == "magicraft:induce_weakness" && chargeTime <= 19960 && player.getTotalXp() <= 55) {
                    player.runCommand("effect @e[family=monster,r=5] weakness 10 0 false")
                    player.startItemCooldown("magicraft:attack_spells", 200);
                    player.addEffect("darkness", 200, { showParticles: false, amplifier: 0 })
                }
                //Level 5
                else if (item?.typeId == "magicraft:induce_weakness" && chargeTime <= 19960 && player.getTotalXp() >= 55 && player.getTotalXp() <= 160) {
                    player.runCommand("effect @e[family=monster,r=10] weakness 10 1 false")
                    player.startItemCooldown("magicraft:attack_spells", 200);
                }
                //Level 10
                else if (item?.typeId == "magicraft:induce_weakness" && chargeTime <= 19960 && player.getTotalXp() >= 160 && player.getTotalXp() <= 315) {
                    player.runCommand("effect @e[family=monster,r=15] weakness 10 1 false")
                    player.startItemCooldown("magicraft:attack_spells", 200);
                }
                //Level 15
                else if (item?.typeId == "magicraft:induce_weakness" && chargeTime <= 19960 && player.getTotalXp() >= 315 && player.getTotalXp() <= 550) {
                    player.runCommand("effect @e[family=monster,r=20] weakness 10 1 false")
                    player.startItemCooldown("magicraft:attack_spells", 200);
                }
                //Level 20
                else if (item?.typeId == "magicraft:induce_weakness" && chargeTime <= 19960 && player.getTotalXp() >= 550 && player.getTotalXp() <= 910) {
                    player.runCommand("effect @e[family=monster,r=25] weakness 10 1 false")
                    player.startItemCooldown("magicraft:attack_spells", 200);
                    player.addEffect("slowness", 60, { showParticles: false, amplifier: 0 })
                }
                //Level 25
                else if (item?.typeId == "magicraft:induce_weakness" && chargeTime <= 19960 && player.getTotalXp() >= 910 && player.getTotalXp() <= 2045) {
                    player.runCommand("effect @e[family=monster,r=30] weakness 10 2 false")
                    player.startItemCooldown("magicraft:attack_spells", 200);
                    player.addEffect("slowness", 60, { showParticles: false, amplifier: 0 })
                }
                //Level 35
                else if (item?.typeId == "magicraft:induce_weakness" && chargeTime <= 19960 && player.getTotalXp() >= 2045) {
                    player.runCommand("effect @e[family=monster,r=35] weakness 10 3  false")
                    player.startItemCooldown("magicraft:attack_spells", 200);

                }
            }

            //Water Affinity Spells
            {
                if (item?.typeId == "magicraft:spell_waffinity" && chargeTime <= 19960 && player.getTotalXp() <= 55) {
                    player.addEffect("conduit_power", 1200, { showParticles: false, amplifier: 0 })
                    player.startItemCooldown("magicraft:support_spells", 1800);
                    player.addEffect("darkness", 200, { showParticles: false, amplifier: 0 })
                }
                else if (item?.typeId == "magicraft:spell_waffinity" && chargeTime <= 19960 && player.getTotalXp() >= 55 && player.getTotalXp() <= 160) {
                    player.addEffect("conduit_power", 2400, { showParticles: false, amplifier: 1 })
                    player.startItemCooldown("magicraft:support_spells", 3600);
                }
                else if (item?.typeId == "magicraft:spell_waffinity" && chargeTime <= 19960 && player.getTotalXp() >= 160 && player.getTotalXp() <= 315) {
                    player.addEffect("conduit_power", 3600, { showParticles: false, amplifier: 1 })
                    player.startItemCooldown("magicraft:support_spells", 5400);
                }
                else if (item?.typeId == "magicraft:spell_waffinity" && chargeTime <= 19960 && player.getTotalXp() >= 315 && player.getTotalXp() <= 550) {
                    player.addEffect("conduit_power", 4800, { showParticles: false, amplifier: 2 })
                    player.startItemCooldown("magicraft:support_spells", 5400);
                }
                else if (item?.typeId == "magicraft:spell_waffinity" && chargeTime <= 19960 && player.getTotalXp() >= 550 && player.getTotalXp() <= 910) {
                    player.addEffect("conduit_power", 6000, { showParticles: false, amplifier: 3 })
                    player.startItemCooldown("magicraft:support_spells", 9000);
                    player.addEffect("slowness", 60, { showParticles: false, amplifier: 0 })
                }
                else if (item?.typeId == "magicraft:spell_waffinity" && chargeTime <= 19960 && player.getTotalXp() >= 910 && player.getTotalXp() <= 2045) {
                    player.addEffect("conduit_power", 7200, { showParticles: false, amplifier: 3 })
                    player.startItemCooldown("magicraft:support_spells", 11250);
                    player.addEffect("slowness", 60, { showParticles: false, amplifier: 0 })
                }
                else if (item?.typeId == "magicraft:spell_waffinity" && chargeTime <= 19960 && player.getTotalXp() >= 2045) {
                    player.addEffect("conduit_power", 8400, { showParticles: false, amplifier: 3 })
                    player.startItemCooldown("magicraft:support_spells", 11250);
                }
            }

            //Clairvoyance Spells
            {
                if (item?.typeId == "magicraft:spell_clairvoyance" && chargeTime <= 19960 && player.getTotalXp() <= 55) {
                    player.addEffect("conduit_power", 1200, { showParticles: false, amplifier: 0 })
                    player.addEffect("night_vision", 1200, { showParticles: false, amplifier: 0 })
                    player.startItemCooldown("magicraft:support_spells", 1800);
                    player.addEffect("darkness", 200, { showParticles: false, amplifier: 0 })
                }
                else if (item?.typeId == "magicraft:spell_clairvoyance" && chargeTime <= 19960 && player.getTotalXp() >= 55 && player.getTotalXp() <= 160) {
                    player.addEffect("conduit_power", 2400, { showParticles: false, amplifier: 1 })
                    player.addEffect("night_vision", 2400, { showParticles: false, amplifier: 1 })
                    player.startItemCooldown("magicraft:support_spells", 3600);
                }
                else if (item?.typeId == "magicraft:spell_clairvoyance" && chargeTime <= 19960 && player.getTotalXp() >= 160 && player.getTotalXp() <= 315) {
                    player.addEffect("conduit_power", 3600, { showParticles: false, amplifier: 1 })
                    player.addEffect("night_vision", 3600, { showParticles: false, amplifier: 1 })
                    player.startItemCooldown("magicraft:support_spells", 5400);
                }
                else if (item?.typeId == "magicraft:spell_clairvoyance" && chargeTime <= 19960 && player.getTotalXp() >= 315 && player.getTotalXp() <= 550) {
                    player.addEffect("conduit_power", 4800, { showParticles: false, amplifier: 2 })
                    player.addEffect("night_vision", 4800, { showParticles: false, amplifier: 2 })
                    player.startItemCooldown("magicraft:support_spells", 5400);
                }
                else if (item?.typeId == "magicraft:spell_clairvoyance" && chargeTime <= 19960 && player.getTotalXp() >= 550 && player.getTotalXp() <= 910) {
                    player.addEffect("conduit_power", 6000, { showParticles: false, amplifier: 3 })
                    player.addEffect("night_vision", 6000, { showParticles: false, amplifier: 3 })
                    player.startItemCooldown("magicraft:support_spells", 9000);
                    player.addEffect("slowness", 60, { showParticles: false, amplifier: 0 })
                }
                else if (item?.typeId == "magicraft:spell_clairvoyance" && chargeTime <= 19960 && player.getTotalXp() >= 910 && player.getTotalXp() <= 2045) {
                    player.addEffect("conduit_power", 7200, { showParticles: false, amplifier: 3 })
                    player.addEffect("night_vision", 7200, { showParticles: false, amplifier: 3 })
                    player.startItemCooldown("magicraft:support_spells", 11250);
                    player.addEffect("slowness", 60, { showParticles: false, amplifier: 0 })
                }
                else if (item?.typeId == "magicraft:spell_clairvoyance" && chargeTime <= 19960 && player.getTotalXp() >= 2045) {
                    player.addEffect("conduit_power", 8400, { showParticles: false, amplifier: 3 })
                    player.addEffect("night_vision", 8400, { showParticles: false, amplifier: 3 })
                    player.startItemCooldown("magicraft:support_spells", 11250);
                }
            }